package com.vf.admin.client.service.impl;

import com.vf.admin.client.dao.AppBeckoningDao;
import com.vf.admin.client.service.AppBeckoningService;
import com.vf.admin.miaodong.entity.AppBeckoning;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class AppBeckoningServiceImpl implements AppBeckoningService {

    @Autowired
    private AppBeckoningDao appBeckoningDao;

    @Override
    public void addBeckoning(AppBeckoning appBeckoning) {
        appBeckoningDao.add(appBeckoning);
    }

    @Override
    public AppBeckoning findBeckoningByUserId(Integer userId, Integer beiUserId) {
        return appBeckoningDao.findBeckoningByUserId(userId,beiUserId);
    }

    @Override
    public AppBeckoning getLimitOne(Integer userId, Integer beiUserId) {
        return appBeckoningDao.getLimitOne(userId, beiUserId);
    }

    @Override
    public void updateBeckoningMutual(Integer userId, Integer beiUserId) {
        appBeckoningDao.updateBeckoningMutual(userId,beiUserId);
    }
}
